package chapter06

/**
 * 定义父类
 * 给Test04_Access调用
 */
object Test04_ClassForAccess {

}

class Person {
  private var idCard: String = "232323"
  protected var name: String = "alice"
  var sex: String = "female"
  private[chapter06] var age: Int = 18

  def printInfo: Unit = {
    println(s"Person: $idCard $name $sex $age")
  }
}
